package com.tong.embeddedvr.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "vercodeconfig")
public class VerCodeMsgConfig extends AliyunConfig{

    private String signName;
    private String templateCode;

    public VerCodeMsgConfig() {
    }

    public VerCodeMsgConfig(String signName, String templateCode) {
        this.signName = signName;
        this.templateCode = templateCode;
    }

    public VerCodeMsgConfig(String accessKeyId, String secret, String signName, String templateCode) {
        super(accessKeyId, secret);
        this.signName = signName;
        this.templateCode = templateCode;
    }

    public String getSignName() {
        return signName;
    }

    public void setSignName(String signName) {
        this.signName = signName;
    }

    public String getTemplateCode() {
        return templateCode;
    }

    public void setTemplateCode(String templateCode) {
        this.templateCode = templateCode;
    }

    @Override
    public String toString() {
        return "VerCodeMsgConfig{" +
                "signName='" + signName + '\'' +
                ", templateCode='" + templateCode + '\'' +
                ", getAccessKeyId='" + this.getAccessKeyId() + '\'' +
                ", getSecret='" + this.getSecret() + '\'' +
                '}';
    }
}
